/**
 * Created by morocco on 20-8-8.
 */

app.directive("ngDataTables", ["$timeout", function ($timeout) {
    return {
        restrict: 'EA',
        link: function (scope, element, attr) {
            $timeout(function () {
                $(element).DataTable({
                    "paging": true,
                    "lengthChange": true,
                    "searching": true,
                    "ordering": true,
                    "info": true,
                    "autoWidth": false
                });
            });
        }
    }
}]);